From 2d460963b6a1e75916d811c591aacd7b0cfc8da2 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 24 Apr 2007 09:50:12 +0100 Subject: [PATCH] Don't bypass the spin_unlock at the end of do_domctl(). Signed-off-by: Stefan Berger --- xen/common/domctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 2e1090df8d..f0032ed351 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -300,9 +300,10 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl) static domid_t rover = 0; unsigned int domcr_flags; + ret = -EINVAL; if ( supervisor_mode_kernel || (op->u.createdomain.flags & ~XEN_DOMCTL_CDF_hvm_guest) ) - return -EINVAL; + break; dom = op->domain; if ( (dom > 0) && (dom < DOMID_FIRST_RESERVED) ) -- 2.30.2